<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>碳中和在线监测系统</title>
    <link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/mycss.css" />
    <script src="js/jquery.js"></script>
</head>

<body>
    <!-- 头部的盒子 -->
    <header>
        <span
            style="color: white;font-size: 0.18rem;float: left;line-height: 30px;margin-top: 20px;position: absolute;left: 2%;"
            class="username">欢迎您,root</span>
        <a style="float: left;color: white;font-size: 0.18rem;line-height: 30px;margin-top: 20px;cursor: pointer;position: absolute;left: 8%;"
            onclick="logout()">退出</a>
        <div class="header_navigate" style="left: 15%;">
            <ul>
                <li>碳中和进程</li>
                <li class="tanpaifang">碳排放监测</li>
                <ul class="tanpaifang_dropdown">
                    <li style="border-bottom: 1px solid white;" onclick="toShebeiManage()">碳排放监测设备管理</li>
                    <li>碳排放数据监测显示</li>
                </ul>
                <li class="nenghao">能耗监测</li>
                <ul class="tanpaifang_dropdown2">
                    <li style="border-bottom: 1px solid white;">所有能耗监测
                    </li>
                    <li>单个设备的能耗监测</li>
                </ul>
            </ul>
        </div>
        <h1>碳中和在线监测系统</h1>
        <div class="header_navigate" style="right: 17%;">
            <ul>
                <li>能耗绩效</li>
                <li>超标预警</li>
                <li>系统管理</li>
            </ul>
        </div>
        <div class="showTime"></div>
        <script>
            var t = null;
            t = setTimeout(time, 1000); //開始运行
            function time() {
                clearTimeout(t); //清除定时器
                dt = new Date();
                var y = dt.getFullYear();
                var mt = dt.getMonth() + 1;
                var day = dt.getDate();
                var h = dt.getHours(); //获取时
                var m = dt.getMinutes(); //获取分
                var s = dt.getSeconds(); //获取秒
                document.querySelector(".showTime").innerHTML =
                    y +
                    "年" +
                    mt +
                    "月" +
                    day +
                    "日" +
                    h +
                    "时" +
                    m +
                    "分" +
                    s +
                    "秒";
                t = setTimeout(time, 1000); //设定定时器，循环运行
            }
        </script>

    </header>

    <iframe frameborder="0" class="main_content" src="https://www.thingjs.com/pp/23b0aa00d83aba63b127c7f9" scrolling="no"></iframe>

    <script type="text/javascript">
       
        function toShebeiManage() {
            $('.main_content').attr('src', 'https://www.thingjs.com/pp/23b0aa00d83aba63b127c7f9');
        }

    
        $(document).ready(function () {
        

            $('.tanpaifang').mouseover(function () {
                $('.tanpaifang_dropdown').css('display', 'inline');
            })

            $('.tanpaifang').mouseout(function () {
                $('.tanpaifang_dropdown').css('display', 'none');
            })

            $('.tanpaifang_dropdown').mouseenter(function () {
                $(this).css('display', 'inline')
            })

            $('.tanpaifang_dropdown').mouseleave(function () {
                $(this).css('display', 'none')
            })

            $('.nenghao').mouseover(function () {
                $('.tanpaifang_dropdown2').css('display', 'inline');
            })

            $('.nenghao').mouseout(function () {
                $('.tanpaifang_dropdown2').css('display', 'none');
            })

            $('.tanpaifang_dropdown2').mouseenter(function () {
                $(this).css('display', 'inline')
            })

            $('.tanpaifang_dropdown2').mouseleave(function () {
                $(this).css('display', 'none')
            })

        });


    </script>
</body>

</html>